package com.example.hazelcasttest;

import com.hazelcast.config.Config;
import com.hazelcast.core.Hazelcast;
import com.hazelcast.core.HazelcastInstance;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;

@SpringBootApplication
public class HazelcastTestApplication {

    public static void main(String[] args) {
        SpringApplication.run(HazelcastTestApplication.class, args);
    }


    @Bean("hazelcastInstance")
    public HazelcastInstance getHazelcastInstance(){
        Config config = new Config();

        HazelcastInstance hazelcastInstance = Hazelcast.newHazelcastInstance();
        return hazelcastInstance;
    }
}
